Socket error code summary


The following is the list of error codes used in the current library implementation. Additional error codes may be used in future library releases.

SO_EADDRINUSE Address is already in use.
SO_EADDRNOTAVAIL The address is not available.
SO_EAFNOSUPPORT Non-supported address family.
SO_EAGAIN Requested operation would block.(Same as SO_EWOULDBLOCK)
SO_EBADF Bad socket descriptor.
SO_ECONNABORTED Connection aborted.
SP_ECONNREFUSED Connection refused.
SO_ECONNRESET Connection reset.
SO_EDESTADDRREQ No destination address was specified.
SO_EINPROGRESS Connection cannot be completed immediately.
SO_EINTR Canceled.
SO_EINVAL Invalid operation.
SO_EIO I/O error.
SO_EISCONN Socket is already connected.
SO_EMFILE No more socket descriptors.
SO_EMSGSIZE Too large to be sent.
SO_ENETDOWN Local network interface is down.
SO_ENETRESET Socket library is not initialized.
SO_ENETUNREACH Unreachable.
SO_ENOBUFS Insufficient resources.
SO_ENOMEM Insufficient memory.
SO_ENOPROTOOPT Non-supported option.
SO_ENOTCONN Not connected.
SO_EOPNOTSUPP Non-supported operation.
SO_EPROTONOSUPPORT Non-supported protocol.
SO_EPROTOTYPE Non-supported socket type.
SO_ETIMEDOUT Timed out.
SO_EWOULDBLOCK Requested operation would block. (Same as SO_EAGAIN)

See Also